home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2005 February / WN_129_CD.iso / Windows / Extensions Firefox / Tooltip Enhancer / tooltipenh_frFR.xpi / install.js next >
Encoding:
Text File  |  2004-10-17  |  796 b   |  28 lines

  1. var err = initInstall("tooltipenh", "tooltipenh", "0.4.1");
  2. var programInst=false
  3.  
  4. if (File.exists(getFolder("chrome","tooltipenh.jar")))
  5.    programInst=true;
  6. else
  7. {  isInProfile=File.exists(getFolder(getFolder("Profile","chrome"),"tooltipenh.jar"));
  8.    if (!isInProfile && !File.exists(getFolder("chrome","browser.jar")))
  9.       programInst=confirm("OK to install into program folder\n\nCancel to install into profile folder");
  10. }
  11.  
  12. if (programInst)
  13. {  cFolder=getFolder("chrome");
  14.    target=DELAYED_CHROME;
  15. }
  16.  
  17. else
  18. {  cFolder=getFolder("Profile","chrome");
  19.    target=PROFILE_CHROME;
  20. }
  21.  
  22. addFile("Tooltip Enhancer","chrome/tooltipenh.jar",cFolder,"");
  23. registerChrome(CONTENT | target, getFolder(cFolder,"tooltipenh.jar"), "content/");
  24.  
  25. if (err==SUCCESS)
  26.    performInstall();
  27. else
  28.    cancelInstall();